#include "page4_widget/page4_widget.h"

Page4_Widget::Page4_Widget(welcome_Widget *widget)
{
    this->welcomewidget = widget;
    this->welcome_ui = this->welcomewidget->ui;

    connect(welcome_ui->pb_clear_rx,SIGNAL(clicked()),this,SLOT(on_pb_clear_rx_clicked()));     //建立信号槽

    welcome_ui->pb_start_poll->setText("开 始");
    welcome_ui->pb_start_poll->setCheckable(false);

}

Page4_Widget::~Page4_Widget()
{
    this->welcomewidget = nullptr;
    this->welcome_ui = nullptr;

}

void Page4_Widget::slot_display_slave_info(QString str_display)
{
    welcome_ui->plainTextEdit_uart_rx->appendPlainText(str_display);
}



void Page4_Widget::on_pb_clear_rx_clicked()
{
    welcome_ui->plainTextEdit_uart_rx->clear();
    welcome_ui->plainTextEdit_cardnum->clear();
    welcome_ui->plainTextEdit_doornum->clear();
    welcome_ui->plainTextEdit_state->clear();
}


